<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<div class="wrap J_check_wrap">
	<form id="J_word_form" class="J_ajaxForm" method="post"
		action="${requestScope.FPWEB.rootPath }/adminmenu/update${requestScope.FPWEB.urlStuff}" autocomplete="off">
		<div class="table_list">
			<table width="100%">
				<thead>
					<tr>
						<td width="60"><label><input type="checkbox"
								class="J_check_all">全选</label></td>
						<td>名称</td>
						<td>控制器</td>
						<td>动作组</td>
						<td>URL</td>
						<td>排序</td>
						<td>操作</td>
					</tr>
				</thead>
				<tbody>
					<c:set var="i" value="0" />
					<c:forEach items="${requestScope.menuMap }" var="item">
					<tr>
						<td></td>
						<td><a class="btn mr10" href="${requestScope.FPWEB.rootPath }/adminmenu/add/${item.key.id}${requestScope.FPWEB.urlStuff}"><span
								class="add"></span>添加${item.key.name }</a></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
					</tr>
					<c:forEach items="${item.value }" var="it">
					<tr>
						<td>
						<input type="hidden" name="menus[${i }].lid" value="${it.lid }">
						<input type="checkbox" name="menus[${i }].id" value="${it.id }"
							class="J_check"></td>

						<td>└─ <input type="text" class="input length_2"
							name="menus[${i }].name" value="${it.name }" /></td>
						<td><input type="text" class="input length_2" name="menus[${i }].c"
							value="${it.c }" /></td>
						<td><input type="text" class="input length_2" name="menus[${i }].a"
							value="${it.a }" /></td>
						<td><input type="text" class="input length_2" name="menus[${i }].url"
							value="${it.url }" /></td>
						<td><input type="text" class="input length_2" name="menus[${i }].pid"
							value="${it.pid }" /></td>
						<td><a class="btn btn_orange J_ajax_del" data-msg="确定删除该控制器？"
							href="${requestScope.FPWEB.rootPath }/adminmenu/del/${it.id}${requestScope.FPWEB.urlStuff}" id="J_ajax_del_${it.id }">删除</a></td>
					</tr>
					<c:set var="i" value="${i+1 }" />
					</c:forEach>
					</c:forEach>
				
				</tbody>
			</table>
		</div>

		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<label class="mr20"><input type="checkbox"
					class="J_check_all">全选</label>
				<button class="btn btn_submit J_ajax_submit_btn" type="submit">保存</button>
			</div>
		</div>
		<input type="hidden" name="istoken"
			value="2a2a17d7321bbe283cbfb332e22ac1d5_6f788fb9359ca545b348c879e138317c" />
	</form>
</div>